package com.grandtech.insurance.service.impl;

import com.grandtech.insurance.dao.DbKhtydkxxDAO;
import com.grandtech.insurance.domain.DbKhtydkxx;
import com.grandtech.insurance.service.DksjtyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional(rollbackFor={Exception.class})
@Service
public class DksjtyServiceImpl implements DksjtyService {

    @Autowired
    DbKhtydkxxDAO dbKhtydkxxDAO;

    @Override
    public int insertSelective(DbKhtydkxx record) {
        return dbKhtydkxxDAO.insertSelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return dbKhtydkxxDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DbKhtydkxx record) {
        return dbKhtydkxxDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public DbKhtydkxx selectByPrimaryKey(Long id) {
        return dbKhtydkxxDAO.selectByPrimaryKey(id);
    }
}
